function columns(vm) {
    const cols = [
        {
            title: '序号',
            dataIndex: '',
            key: 'rowIndex',
            width: 60,
            align: 'center',
            customRender: function (t, r, index) {
                return parseInt(index) + 1
            }
        },
        {
            title: '报表编码',
            align: 'center',
            dataIndex: 'formCode',
            key: 'formCode'
        },
        {
            title: '报表单位',
            align: 'center',
            dataIndex: 'enterpriseUnit',
            key: 'enterpriseUnit',
            scopedSlots: { customRender: 'enterpriseUnit' }
        },
        {
            title: '报表年份',
            align: 'center',
            dataIndex: 'reportYear',
            key: 'reportYear'
        },
        {
            title: '报表月份',
            align: 'center',
            dataIndex: 'reportMonth',
            key: 'reportMonth',
        },
        {
            title: '报表生成日期',
            align: 'center',
            dataIndex: 'reportTime',
            key: 'reportTime'
        },
        {
            title: '操作',
            dataIndex: 'action',
            align: 'center',
            width: 120,
            scopedSlots: { customRender: 'action' }
        }
    ]
    return cols
}

export default columns